package com.stwitinc.redmine.dao.task;

import java.sql.SQLException;

import com.stwitinc.DateFormat;
import com.stwitinc.data.model.stwredmine.Task;
import com.stwitinc.redmine.dao.DAO;
import com.stwitinc.redmine.dao.TaskDAO;

public class TaskDAOImpl extends DAO implements TaskDAO
{

	@Override
	public int addTask(Task task) throws SQLException
	{
		String nowString=DateFormat.DATE_TIME.getCurrentDate();
		
		task.setCreateTime(nowString);
		return task.insert(this);
	}
	
}
